package com.hhq.usercenter.domain.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hhq.common.domain.model.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * <p>Description: 角色模型 </p>
 *
 * @author : xiaodong.yang
 * @date : 2024/1/9 17:15
 */
@Table(name = "t_role")
@Entity
@TableName("t_role")
@Setter
@Getter
@org.hibernate.annotations.Table(appliesTo = "t_role", comment = "角色表")
public class RoleModel extends BaseModel {

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称")
    @Column(nullable = false, columnDefinition = "varchar(255) default '' comment '角色名称'")
    private String roleName;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Column(nullable = false, columnDefinition = "varchar(522) default '' comment '备注'")
    private String remark;

    /**
     * 序号
     */
    @ApiModelProperty(value = "序号")
    @Column(nullable = false, columnDefinition = "int(11) default 0 comment '序号'")
    private Integer roleSort;
}
